<template>
  <div>
    御剑乘风来,除魔天地间!
    <el-button @click="btn">点击修改父组件中的count</el-button>

  </div>
</template>
<script>
export default {
  name: 'SyncCom',
  // props: ['msg'],
  // eslint-disable-next-line vue/require-default-prop

  data() {
    return {
      a: this.value
    }
  },
  computed: {
  },
  created() {
  },
  methods: {
    btn() {
      this.$emit('input', this.a++)
    }
  }
}
</script>
<style lang='less'  scoped>

</style>
